package day5;

import java.util.Scanner;

public class zuoye4 {
	public static void main(String[] args) {
		int sum = 0;
		Scanner ren = new Scanner(System.in);
		System.out.println("请输入人数");
		int renshu = ren.nextInt();
		int [] array = new int[renshu];
		for(int i = 0;i <= array.length-1;i++) {
			System.out.println("请输入成绩");
			int chengji = ren.nextInt();
			sum = sum +chengji;
	    
		}
		System.out.println("平均成绩为"+sum/renshu);
	}
}
	


